package com.ctw.mapmycity.model;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "account")
public class PostModel implements Serializable{

	private String id = "";
	
	private String userEmail = "";
	private String description = "";
	private int typeKey = 0;
	private String type = "";
	private boolean boRegistered = false;
	
	// column family a:
	private double latitude = 0d;
	private double longitude = 0d;
	
	private String country = "";
	private String state = "";
	private String city = "";
	private String address = "";
	
	// column family x:
	private int shareCount = 0;
	private int agreementCount= 0;
	
	// transient
	private String time = "";
	private String date = "";

	public PostModel() {
		super();
	}
	
	public PostModel(String id, String userEmail, String description,
			int typeKey, String type, boolean boRegistered, double latitude, double longitude,
			String country, String state, String city, String address,
			int shareCount, int agreementCount, String time, String date) {
		super();
		this.id = id;
		this.userEmail = userEmail;
		this.description = description;
		this.typeKey = typeKey;
		this.type = type;
		this.boRegistered = boRegistered;
		this.latitude = latitude;
		this.longitude = longitude;
		this.country = country;
		this.state = state;
		this.city = city;
		this.address = address;
		this.shareCount = shareCount;
		this.agreementCount = agreementCount;
		this.time = time;
		this.date = date;
	}
	
	public String getUserEmail() {
		return userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getTypeKey() {
		return typeKey;
	}

	public void setTypeKey(int typeKey) {
		this.typeKey = typeKey;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public boolean isBoRegistered() {
		return boRegistered;
	}

	public void setBoRegistered(boolean boRegistered) {
		this.boRegistered = boRegistered;
	}

	public int getShareCount() {
		return shareCount;
	}

	public void setShareCount(int shareCount) {
		this.shareCount = shareCount;
	}

	public int getAgreementCount() {
		return agreementCount;
	}

	public void setAgreementCount(int agreementCount) {
		this.agreementCount = agreementCount;
	}
}